#pragma once
#include <log4cpp/Category.hh>
#include "accessKeyRes.h"

class ObsClient
{
public:
	ObsClient();
	~ObsClient();
	bool getObject(char* key, const Char* filePath, volatile bool& stop);
private:
	bool init();
	bool enabled();
	FILE* openFile(const Char* filePath);
private:
	AccessKey accessKey;
	static bool inited;
	static char HOST_NAME[100];
	static char BUCKET_NAME[50];
	static log4cpp::Category& logger;
};

